﻿using Abp.Domain.Entities;
using System;

namespace Batman.RefiningPharmacist.Domains
{
    /// <summary>
    /// 合成物
    /// </summary>
    public class CompositeItem : Entity<int>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string CompositeItemName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public float CompositeItemAmount { get; set; }

        /// <summary>
        /// 添加人，有可能不是合成清单的创建人添加的
        /// </summary>
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateAt { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 删除人
        /// </summary>
        public int? DeleteBy { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteAt { get; set; }

        /// <summary>
        /// 创建对象时，初始化信息
        /// </summary>
        /// <param name="createId"></param>
        public void InitOnCreate(string createId)
        {
            CreateBy = createId;
            CreateAt = DateTime.Now;
        }

    }
}
